#include <math.h>
#include <stdio.h>

void main() {
  FILE * arq = NULL;
  char c1, c2;
  int x1, x2;
  float y1, y2;
	
  if((arq = fopen("arq704.txt","a+")) != NULL) {	
	printf("Digite valores char, int e float:\n");
	scanf("%c %d %f", &c1, &x1, &y1);
	fprintf(arq,"%c %d %f\n", c1, x1, y1); 
	rewind(arq);
	fscanf(arq,"%c %d %f", &c2, &x2, &y2); 
	printf("%c %d %f\n", c2, x2, y2); 
	fclose(arq);			
  }
}
